package com.red.star.macalline.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @Author: Yenan
 * @Description:
 * @Date: Created in 11:34 2018/2/6
 */
@Data
@Table(name = "t_employee")
public class Employee extends BaseEntity {

    private String name;

    private String mobile;

    private String mallCode;

    private Integer merchantId;

    private String vipOpenId;

    private String vipId;

    /**
     * 0:启用;1:停用;2:删除
     */
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date bindTime;


    /**
     * 解绑时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date unbindTime;

    /**
     * 0:导购员
     */
    private Integer type;

    /**
     * 粉丝ID
     */
    private Integer fansId;

    /**
     * 0:已选择,1:未选择
     */
    @Transient
    private Integer checked;

    @Transient
    private String category;

    @Transient
    private String mallName;

    @Transient
    private String merchantName;

    @Transient
    private String fansOpenId;

    @Transient
    private String nickName;

    /**
     * 欢迎词（最多50字符）
     */
    @Transient
    private String welcomeWords;
    /**
     * 欢迎词生效开始时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm")
    @Transient
    private Date welcomeStartTime;
    /**
     * 欢迎词生效结束时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm")
    @Transient
    private Date welcomeEndTime;

    /**
     * 是否店长
     */
    private Boolean isShopOwner;

    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endbindTime;

    /**
     * 是否为客服
     * */
    private Integer isCustomer;

    /**
     * 优先级
     * */
    private Integer priority;

    @Transient
    @DateTimeFormat(pattern = "HH:mm")
    private Date startTime;

    @Transient
    @DateTimeFormat(pattern = "HH:mm")
    private Date endTime;
}
